-- GENERATED SPELL FOR [Qiraji Lasher] --


function spell0_15249(pUnit, Event) --@Knockback,Self--
pUnit:FullCastSpellOnTarget(26027,pUnit)
pUnit:RegisterEvent('Sorts_15249', 509, 1)
end

function spell1_15249(pUnit, Event) --@Whirlwind,n/a--
pUnit:FullCastSpellOnTarget(26038,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15249', 8000, 1)
end

function spell2_15249(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(26686,pUnit)
pUnit:RegisterEvent('Sorts_15249', 595, 1)
end

function Sorts_15249(pUnit, Event)
local choix_sorts_15249 = math.random(0, 2)
if choix_sorts_15249 == 0 then
pUnit:RegisterEvent('spell0_15249', 1, 1)
end
if choix_sorts_15249 == 1 then
pUnit:RegisterEvent('spell1_15249', 1, 1)
end
if choix_sorts_15249 == 2 then
pUnit:RegisterEvent('spell2_15249', 1, 1)
end
end

function mob15249_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15249', math.random(1500, 3000), 1)
end

function mob15249_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15249_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15249_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15249, 1, 'mob15249_Action')
RegisterUnitEvent(15249, 2, 'mob15249_Leave')
RegisterUnitEvent(15249, 3, 'mob15249_Kill')
RegisterUnitEvent(15249, 4, 'mob15249_Die')
